package registnet.records.source;

import registnet.records.ICourse;
import registnet.records.Section;

public class SectionSource {

	private ICourse course;
	private String sectionName;
	private Section section;
	
	
	/**
	 * Default constructor
	 * 
	 * @param course - The course who owns this section
	 * @param sectionName - The name of the section
	 */
	public SectionSource(ICourse course, String sectionName){
		this.course = course;
		this.sectionName = sectionName;
		this.load();
	}
	
	
	/**
	 * Loads data from source
	 */
	public void load(){
		this.section = new Section(this.course, this.sectionName);
		
		/* TODO */
		/* Student student = new StudentSource(DAOStudent.getStudentNumber()).getStudent();
		 * this.section.addStudent(student);
		 * 
		 * Employee teacher = new EmployeeSource(DAOEmployee.getEmployeeNumber()).getEmployee();
		 * this.section.addTeacher(teacher);
		 * */
	}
	
	
	/**
	 * Gets the section
	 * 
	 * @return	The section
	 */
	public Section getSection(){
		return this.section;
	}
	
}
